
 function theform(url,sx='1'){
               
var form=$('#theform').serialize();
               
                    $.ajax({
                        async:false,
                        url:url,
                        data:form,
                        type:'post',
                        dataType:'json',
                        success:function(res){
							console.log(res);
                            if(res.status != 1){
                              
								msg(res.msg);
                               
                                money=false;
                                paytype=false;
                                return false;
                            }else{
								 msg(res.msg);
                             if(sx=='1'){setTimeout(function(){window.location.reload();},2000);}
                            }
                        },
                        error : function(XMLHttpRequest, textStatus, errorThrown) {
							
							msg('网络失败，请刷新页面后重试!');
                          
                        }
                    });
                
            }

           
            
		
			


			
           
			
